package com.newhonor.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.newhonor.server.pojo.Department;
import com.newhonor.server.pojo.ResBean;

import java.util.List;

/**
 * @Author newhonor
 * @Date 2021/2/23 11:00
 * @Version 1.0
 **/
public interface IDepartmentService extends IService<Department> {
    /**
     * 获取所有部门
     * @return
     */
    List<Department> getAllDepartments();

    ResBean addDep(Department department);

    ResBean deleteDep(Integer id);
}
